<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // break 和 continue 的区别
        /* break 达到某个条件跳出(中断)循环 */
        for(var i=0;i<=6;i++){
            if(i==3){
                break;
            }
            console.log(i)
        }
        console.log("hello world")

        /* continue 跳出某个条件，继续循环 */
        for(var i=0;i<=6;i++){
            if(i==3){
                continue;
            }
            console.log(i)
        }
    </script>
</body>
</html>